package com.jason.learn.apiproject.mapper;

import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Component
public interface ProductMapper {
    @Update("UPDATE t_product SET storage = storage-1 WHERE id=#{id}")
    boolean updateStorage(Long id);
}
